import { axios } from '@/utils/request'
export function orgAddMenu(parameter) {
  return axios({
    url: '/sys/hr/enterprise/org/add',
    method: 'post',
    data: parameter
  })
}
export function orgEidtMenu(parameter) {
  return axios({
    url: '/sys/hr/enterprise/org/update',
    method: 'post',
    data: parameter
  })
}
export function orgDelMenu(parameter) {
  return axios({
    url: '/sys/hr/enterprise/org/delete',
    method: 'post',
    data: parameter
  })
}
export function orgGetMenuTree(id) {
  id = id !== undefined ? id : '';
  return axios({
    url: `/sys/hr/enterprise/org/selectEnterpriseOrgTree?parentOrgId=${id}`,
    method: 'get'
  })
}
export function orgQueryMenuList(state) {
  state = state !== undefined ? state : '';
  return axios({
    url: `/sys/menu/listSysMenu?status=${state}`,
    method: 'get'
  })
}
export function orgQueryMenuIdChildList(parameter) {
  return axios({
    url: `/sys/hr/enterprise/org/pageQueryEnterpriseOrganizationByParentId`,
    method: 'get',
    params: parameter
  })
}
export function orgMenuDisable(parameter) {
  return axios({
    url: '/sys/menu/disableSysMenu',
    method: 'post',
    data: parameter
  })
}

